package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.checkerframework.common.aliasing.qual.Unique;

/**
 * 合同管理-模板(ContractTemplate)表实体类
 *
 * @author yxy
 * @since 2024-10-29 15:37:32
 */
@Data
@ApiModel("合同管理-模板")
@TableName(value = "tb_contract_template")
public class ContractTemplate extends Model<ContractTemplate> implements Serializable {
    private static final long serialVersionUID = 476557094942699855L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("模板名称")
    private String name;

    @ApiModelProperty("合同类型")
    @Unique
    private Integer type;

    @ApiModelProperty("文件")
    private String file;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("商家id")
    private Long merchantId;

    @ApiModelProperty(value = "合同模板类型：0-平台模板，1-商户模板")
    private String templateType;

    @ApiModelProperty(value = "可用状态：0-不可用，1-可用")
    private String enable;

    @ApiModelProperty(value = "创建用户")
    private Long createUser;

    @ApiModelProperty(value = "修改用户")
    private Long updateUser;
    @ApiModelProperty("e签宝-模板id")
    private String templateId;
    @ApiModelProperty("e签宝-pdf文件地址")
    private String pdfUrl;
    @ApiModelProperty("e签宝-合同编辑页面")
    private String templateCreateUrl;
    @ApiModelProperty("e签宝-上传文件id")
    private String fileId;
}
